﻿capital = 604
set_research_slots = 6
2000.1.1 = {
	set_country_flag = dynamic_flag
	set_country_flag = dynamic_rebel_flag
	if = {
		limit = { has_dlc = "No Step Back" }

		set_oob = "KOR_2000_nsb"
	}
	if = {
		limit = { NOT = { has_dlc = "No Step Back" } }

		set_oob = "KOR_2000_nonnsb"
	}
	set_cosmetic_tag = KOR
	if = {
		limit = {
			has_dlc = "Man the Guns"
		}
		set_naval_oob = "KOR_2000_naval_mtg"
		else = {
			set_naval_oob = "KOR_2000_naval_legacy"
		}
	}
	set_convoys = 100

	set_variable = { chaebols_opinion = 40 }
	set_variable = { intelligence_community = 40 }

	add_ideas = {
		#pop_050
		widespread_corruption
		pluralist

		fast_growth
		defence_03
		consumption_economy
		edu_04
		health_03
		social_03
		bureau_02
		police_02
		chaebols
		the_military
		intelligence_community
		draft_army
		volunteer_women
		Major_Non_NATO_Ally
		KOR_wartime_control
		KOR_joint_us_exercises
		KOR_conscientious_objectors
		KOR_politicized_spy_agency
		KOR_chaebol_dependence
		KOR_de_facto_two_party_system
		intervention_limited_interventionism
		KOR_national_security_law
		KOR_northern_propaganda_broadcasts
		#hybrid
		#tax_cost_27
		officer_military_school
	}

	add_timed_idea = {
		idea = KOR_national_assembly_deadlocked
		days = 102
	}
	add_timed_idea = { idea = asian_tigers_legacy days = 2000 }
	add_timed_idea = { idea = asian_crisis days = 1265 }

	add_opinion_modifier = { target = JAP modifier = refuse_to_apologize_for_warcrimes }
	reverse_add_opinion_modifier = { target = JAP modifier = refuse_to_apologize_for_warcrimes }
	add_opinion_modifier = { target = JAP modifier = strategic_rivals }
	reverse_add_opinion_modifier = { target = JAP modifier = strategic_rivals }
	add_opinion_modifier = { target = JAP modifier = large_commercial_relations }
	reverse_add_opinion_modifier = { target = JAP modifier = large_commercial_relations }
	add_opinion_modifier = { target = IND modifier = large_commercial_relations }
	reverse_add_opinion_modifier = { target = IND modifier = large_commercial_relations }
	add_opinion_modifier = { target = VIE modifier = large_commercial_relations }
	reverse_add_opinion_modifier = { target = VIE modifier = large_commercial_relations }
	add_opinion_modifier = { target = PHI modifier = large_commercial_relations }
	reverse_add_opinion_modifier = { target = PHI modifier = large_commercial_relations }
	add_opinion_modifier = { target = BRU modifier = large_commercial_relations }
	reverse_add_opinion_modifier = { target = BRU modifier = large_commercial_relations }
	add_opinion_modifier = { target = NKO modifier = NKO_KOR_Koren_War_Ceasefire }
	add_opinion_modifier = { target = NKO modifier = propaganda_broadcasts }
	reverse_add_opinion_modifier = { target = NKO modifier = NKO_KOR_Koren_War_Ceasefire }
	add_opinion_modifier = { target = USA modifier = diplomatic_proximity }
	reverse_add_opinion_modifier = { target = USA modifier = diplomatic_proximity }

	set_variable = { KOR.SFR = 80 }

	set_variable = { election_threshold = 0.3 }

	#Cyber
	add_to_array = { cyber_targets = CHI }
	add_to_array = { cyber_targets = JAP }
	add_to_array = { cyber_targets = NKO }
	add_to_array = { cyber_targets = SOV }
	add_to_array = { cyber_targets = USA }

	#Influence system
	init_influence = yes
	set_variable = { domestic_influence_amount = 400 }
	add_to_array = { influence_array = USA.id }
	add_to_array = { influence_array_val = 120 }
	add_to_array = { influence_array = JAP.id }
	add_to_array = { influence_array_val = 40 }
	add_to_array = { influence_array = CHI.id }
	add_to_array = { influence_array_val = 70 }
	add_to_array = { influence_array = GER.id }
	add_to_array = { influence_array_val = 5 }
	startup_influence = yes

	set_variable = { var = debt value = 196 }
	set_variable = { var = treasury value = 141 }
	set_variable = { var = int_investments value = 140 }
	set_variable = { var = corporate_tax_rate value = 19 }
	set_variable = { var = population_tax_rate value = 31 }

	# Investment
	add_to_array = { KOR.investment_targets = CHI }
	add_to_array = { KOR.investment_targets = JAP }
	add_to_array = { KOR.investment_targets = RAJ }
	add_to_array = { KOR.investment_targets = IND }
	add_to_array = { KOR.investment_targets = KAZ }
	add_to_array = { KOR.investment_targets = MAY }
	add_to_array = { KOR.investment_targets = SIN }
	add_to_array = { KOR.investment_targets = PHI }
	add_to_array = { KOR.investment_targets = SIA }
	add_to_array = { KOR.investment_targets = VIE }
	add_to_array = { KOR.investment_targets = LAO }
	add_to_array = { KOR.investment_targets = TAI }
	add_to_array = { KOR.investment_targets = MON }
	add_to_array = { KOR.investment_targets = CBD }
	add_to_array = { KOR.investment_targets = BRM }
	add_to_array = { KOR.investment_targets = BAN }
	add_to_array = { KOR.investment_targets = PAP }
	add_to_array = { KOR.investment_targets = FIJ }
	add_to_array = { KOR.investment_targets = SOL }
	add_to_array = { KOR.investment_targets = SRI }
	add_to_array = { KOR.investment_targets = MLD }
	add_to_array = { KOR.investment_targets = USA }
	add_to_array = { KOR.investment_targets = CAN }
	add_to_array = { KOR.investment_targets = MEX }
	add_to_array = { KOR.investment_targets = BRA }
	add_to_array = { KOR.investment_targets = ARG }
	add_to_array = { KOR.investment_targets = HOL }
	add_to_array = { KOR.investment_targets = FRA }
	add_to_array = { KOR.investment_targets = GER }
	add_to_array = { KOR.investment_targets = SLO }
	add_to_array = { KOR.investment_targets = SPR }
	add_to_array = { KOR.investment_targets = POR }
	add_to_array = { KOR.investment_targets = MAD }
	add_to_array = { KOR.investment_targets = ETH }
	add_to_array = { KOR.investment_targets = EGY }
	add_to_array = { KOR.investment_targets = SAF }
	add_to_array = { KOR.investment_targets = AST }
	add_to_array = { KOR.investment_targets = NZL }
	add_to_array = { KOR.investment_targets = SOL }

	set_technology = {
		integrated_transportation_system = 1
		post_conventional_rail = 1
		early_freight_locomotive = 1

		legacy_doctrines = 1
		combined_arms = 1
		infantry_weapons = 1
		infantry_weapons1 = 1
		infantry_weapons2 = 1 #primary
		infantry_weapons3 = 1
		infantry_weapons4 = 1
		support_weapons = 1
		support_weapons2 = 1
		tandem_charge_warheads = 1
		squad_automatic_weapon = 1
		support_weapons3 = 1
		special_forces = 1
		special_forces2 = 1

		command_control_equipment = 1
		command_control_equipment1 = 1
		command_control_equipment2 = 1
		command_control_equipment3 = 1

		land_Drone_equipment = 1
		land_Drone_equipment1 = 1
		land_Drone_equipment2 = 1

		Anti_tank_0 = 1
		Anti_tank_1 = 1
		Anti_tank_2 = 1
		AT_upgrade_1 = 1
		AT_upgrade_2 = 1
		Heavy_Anti_tank_0 = 1

		Anti_Air_0 = 1
		SP_Anti_Air_0 = 1
		AA_upgrade_1 = 1
		Anti_Air_1 = 1
		SP_Anti_Air_1 = 1
		AA_upgrade_2 = 1
		Anti_Air_2 = 1
		AA_upgrade_3 = 1

		combat_eng_equipment = 1

		Early_APC = 1

		IFV_1 = 1
		IFV_2 = 1
		IFV_3 = 1
		IFV_4 = 1

		APC_1 = 1
		APC_2 = 1
		APC_3 = 1
		APC_4 = 1

		util_vehicle_0 = 1
		util_vehicle_1 = 1
		util_vehicle_2 = 1
		util_vehicle_3 = 1

		SP_arty_0 = 1
		SP_arty_1 = 1
		SP_arty_2 = 1 #K9 Thunder

		artillery_0 = 1
		artillery_1 = 1 #KH-178
		artillery_2 = 1 #KH-179

		Arty_upgrade_1 = 1
		Arty_upgrade_3 = 1

		SP_R_arty_0 = 1
		SP_R_arty_1 = 1
		SP_R_arty_2 = 1 #Chunmoo

		early_helicopter = 1
		attack_helicopter1 = 1

		transport_helicopter1 = 1
		transport_helicopter2 = 1

		SP_Anti_Air_2 = 1 #K30 Biho or KIFV Vulcan SPAAG

		early_fighter = 1
		AS_Fighter1 = 1

		MR_Fighter1 = 1

		Strike_fighter1 = 1

		L_Strike_fighter1 = 1

		early_bomber = 1
		transport_plane1 = 1

		night_vision_1 = 1
		night_vision_2 = 1
		night_vision_3 = 1

		landing_craft = 1

		body_armor_1980 = 1
		body_armor_2000 = 1
		camouflage = 1
		camouflage2 = 1

		basic_computing = 1
		integrated_circuit = 1
		computing1 = 1
		decryption1 = 1
		encryption1 = 1
		microprocessors = 1
		computing2 = 1
		decryption2 = 1
		encryption2 = 1
		computing3 = 1
		decryption3 = 1
		encryption3 = 1
		DNA_fingerprinting = 1

		radar = 1
		internet1 = 1 	#1G
		internet2 = 1 	#2G
		gprs = 1
		fuel_silos = 1
	}
	if = {
		limit = { has_dlc = "No Step Back" }

		set_technology = {
			mbt_tech = 1
			mbt_tech_1 = 1
			tank_components_tech = 1
			tank_components_tech_2 = 1
			small_medium_gun_tech = 1
			small_medium_gun_tech_2 = 1
			medium_gun_tech = 1
			medium_gun_tech_2 = 1
			armor_tech = 1
			armor_tech_2 = 1
			era_tech = 1
			era_tech_2 = 1
			diesel_engine_tech = 1
			diesel_engine_tech_2 = 1
			diesel_engine_tech_3 = 1
			turbine_engine_tech = 1
			turbine_engine_tech_2 = 1
		}
	}
	if = {
		limit = { NOT = { has_dlc = "No Step Back" } }

		set_technology = {
			MBT_1 = 1
			MBT_2 = 1
			MBT_3 = 1
		}
	}
	if = {
		limit = {
			not = { has_dlc = "Man the Guns" }
		}
		set_technology = {
			#Corvettes
			corvette_1 = 1
			corvette_2 = 1
			missile_corvette_1 = 1 # Pohang-class corvette (1984)

			#Frigates
			frigate_1 = 1
			frigate_2 = 1 #Ulsan-class frigate (1980)
			missile_frigate_1 = 1
			missile_frigate_2 = 1 #Gwanggaeto the Great Class Destroyer (1998)

			#Destroyer
			destroyer_1 = 1
			destroyer_2 = 1
			missile_destroyer_1 = 1
			missile_destroyer_2 = 1

			#Diesel Attack Submarines
			submarine_1 = 1
			diesel_attack_submarine_1 = 1
			diesel_attack_submarine_2 = 1 #Chang Bogo-class submarine (1990's should be diesel_attack_submarine_3 tho)

			#LPD
			LPD_0 = 1
			LPD_1 = 1
		}
	}
	if = {
		limit = {
			has_dlc = "Man the Guns"
		}
		set_technology = {
			corvette_hull_1 = 1
			corvette_hull_2 = 1

			frigate_hull_1 = 1
			frigate_hull_2 = 1
			frigate_hull_3 = 1

			destroyer_hull_1 = 1
			destroyer_hull_2 = 1

			attack_submarine_hull_1 = 1
			attack_submarine_hull_2 = 1
			attack_submarine_hull_3 = 1

			aircraft_carrier_engineering = 1
			aircraft_heli_engineering_1 = 1

			tech_submarine_engineering = 1
			tech_submarine_engineering_1 = 1

			tech_naval_systems_engineering = 1
			tech_power_systems = 1
			tech_power_systems_1 = 1

			tech_combat_support_systems = 1
			tech_fire_control = 1
			tech_fire_control_1 = 1
			tech_combat_radar = 1
			tech_combat_radar_1 = 1
			tech_combat_radar_2 = 1
			tech_combat_sonar = 1
			tech_combat_sonar_1 = 1
			tech_combat_sonar_2 = 1

			tech_early_naval_weapon_systems = 1
			tech_naval_weapon_systems = 1
			tech_light_guns = 1
			tech_light_guns_1 = 1
			tech_127mm_guns = 1
			tech_127mm_guns_1 = 1

			tech_point_defense_system = 1
			tech_point_defense_system_1 = 1
			tech_point_defense_system_2 = 1
			tech_point_defense_system_3 = 1

			tech_missile_systems = 1
			tech_turret_missiles_surface = 1
			tech_turret_missiles_surface_1 = 1
			tech_turret_missiles_aa = 1
			tech_turret_missiles_aa_1 = 1
			tech_turret_missiles_aa_2 = 1
			tech_vls_surface = 1
			tech_vls_surface_1 = 1
			tech_vls_surface_2 = 1
			tech_vls_aa = 1
			tech_vls_aa_1 = 1
			tech_vls_aa_2 = 1

			tech_torpedoes = 1
			tech_torpedoes_1 = 1
			tech_torpedoes_2 = 1

			tech_mtg_landing_craft = 1
		}
	}


	set_popularities = {
		democratic = 94.6
		communism = 4.8
		fascism = 0.0
		neutrality = 0.5
		nationalist = 0.1
	}
	set_politics = {
		ruling_party = democratic
		last_election = "1997.12.18"
		election_frequency = 60
		elections_allowed = yes
	}

	start_politics_input = yes

	### Party Popularities
	set_variable = { party_pop_array^0 = 0 } #Western_Autocracy
	set_variable = { party_pop_array^1 = 0.462 } #conservatism
	set_variable = { party_pop_array^2 = 0 } #liberalism
	set_variable = { party_pop_array^3 = 0.484 } #socialism
	set_variable = { party_pop_array^4 = 0.009 } #Communist-State
	set_variable = { party_pop_array^5 = 0.039 } #anarchist_communism
	set_variable = { party_pop_array^6 = 0 } #Conservative
	set_variable = { party_pop_array^7 = 0 } #Autocracy
	set_variable = { party_pop_array^8 = 0 } #Mod_Vilayat_e_Faqih
	set_variable = { party_pop_array^9 = 0 } #Vilayat_e_Faqih
	set_variable = { party_pop_array^10 = 0 } #Kingdom
	set_variable = { party_pop_array^11 = 0 } #Caliphate
	set_variable = { party_pop_array^12 = 0 } #Neutral_Muslim_Brotherhood
	set_variable = { party_pop_array^13 = 0 } #Neutral_Autocracy
	set_variable = { party_pop_array^14 = 0.005 } #Neutral_conservatism
	set_variable = { party_pop_array^15 = 0 } #oligarchism
	set_variable = { party_pop_array^16 = 0 } #Neutral_Libertarian
	set_variable = { party_pop_array^17 = 0 } #Neutral_green
	set_variable = { party_pop_array^18 = 0 } #neutral_Social
	set_variable = { party_pop_array^19 = 0 } #Neutral_Communism
	set_variable = { party_pop_array^20 = 0.001 } #Nat_Populism
	set_variable = { party_pop_array^21 = 0 } #Nat_Fascism
	set_variable = { party_pop_array^22 = 0 } #Nat_Autocracy
	set_variable = { party_pop_array^23 = 0 } #Monarchist

	### Ruling Party
	add_to_array = { ruling_party = 3 }
	add_to_array =  { gov_coalition_array = 14 }

	startup_politics = yes

	set_country_flag = party5_banned

	create_country_leader = {
		name = "Kim Dae-jung"
		desc = KIM_DAE_JUNG_LEADER_DESC
		picture = "Kim_Dae-jung.dds"
		ideology = socialism
		traits = {
			western_socialism
			career_politician
			likeable
			asian_nelson_mandela
		}
	}
	set_variable = { term_limit = 1 }
	set_variable = { current_term = 1 }

	recruit_character = KOR_lee_wangkeun
	recruit_character = KOR_park_jeongheon
	recruit_character = KOR_sung_ilhwan
	recruit_character = KOR_won_inchoul
	recruit_character = KOR_kim_yongwoo
	recruit_character = KOR_lee_sunjin
	recruit_character = KOR_kim_byungjoo
	recruit_character = KOR_kim_seonho
	recruit_character = KOR_kim_seokjin
	recruit_character = KOR_lee_jinseong
	recruit_character = KOR_park_chanju
	recruit_character = KOR_park_hanki
	recruit_character = KOR_yom_gihak
	recruit_character = KOR_jung_hosub
	recruit_character = KOR_um_hyunseong
	recruit_character = KOR_jeong_jinseob
	recruit_character = KOR_yoon_jeongsang
	recruit_character = KOR_chung_kyungseok
	recruit_character = KOR_han_giho
	recruit_character = KOR_kim_yeongsik
	recruit_character = KOR_chun_yunggu
	recruit_character = KOR_na_sangwoong
	recruit_character = KOR_moon_byungok
	recruit_character = KOR_park_dongsun
	recruit_character = KOR_park_seongsoo
	recruit_character = KOR_sim_seungseop

	#############################################
	#MTG Variants
	##############
	if = {
		limit = { has_dlc = "Man the Guns" }

		#Gwanggaeto the Great Class
		create_equipment_variant = {
			name = "Gwanggaeto the Great Class"
			type = destroyer_hull_2
			#name_group = KOR_DD_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_engine_slot = module_surface_jet_turbine_power
				fixed_ship_fire_control_system_slot = module_digital_integrated_fire_control
				fixed_ship_radar_slot = module_radar_4
				fixed_ship_auxillary_slot_3 = module_vls_sam_1
				fixed_ship_auxillary_slot_2 = module_fuel_tank
				fixed_ship_auxillary_slot = module_asm_2
				fixed_ship_battery_slot = module_127mm_guns_2
				front_1_custom_slot = module_torpedoes_2
				mid_1_custom_slot = module_ciws_3
				mid_2_custom_slot = module_ciws_3
				rear_1_custom_slot = module_light_helipad_1
			}
		}

		#Ulsan Class https://en.wikipedia.org/wiki/Ulsan-class_frigate
		create_equipment_variant = {
			name = "Ulsan Class"
			type = frigate_hull_2
			#name_group = KOR_DD_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_engine_slot = module_light_surface_diesel_power
				fixed_ship_fire_control_system_slot = module_analog_fire_control
				fixed_ship_radar_slot = module_radar_3
				fixed_ship_auxillary_slot_2 = module_asm_1
				fixed_ship_auxillary_slot_1 = module_torpedoes_2
				fixed_ship_auxillary_slot = module_chain_gun
				fixed_ship_battery_slot = module_76mm_gun_1
				front_1_custom_slot = module_76mm_gun_1
				rear_1_custom_slot = module_chain_gun
			}
		}

		#Pohang Class
		create_equipment_variant = {
			name = "Pohang Class"
			type = corvette_hull_2
			#name_group = KOR_DD_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_engine_slot = module_light_surface_diesel_power
				fixed_ship_fire_control_system_slot = module_analog_fire_control
				fixed_ship_radar_slot = module_radar_3
				fixed_ship_auxillary_slot = module_chain_gun
				fixed_ship_battery_slot = module_76mm_gun_1
				front_1_custom_slot = module_torpedoes_2
				rear_1_custom_slot = module_chain_gun
			}
		}


		#Jang Bogo Class https://en.wikipedia.org/wiki/Jang_Bogo-class_submarine
		create_equipment_variant = {
			name = "Jang Bogo Class"
			type = attack_submarine_hull_3
			#name_group = KOR_SS_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_engine_slot = module_sub_diesel_electric_power
				fixed_ship_radar_slot = module_sonar_3
				fixed_ship_auxillary_slot_3 = module_fuel_tank
				fixed_ship_auxillary_slot_2 = module_sub_esm_1
				fixed_ship_auxillary_slot_1 = module_torpedoes_2
				fixed_ship_auxillary_slot = module_torpedoes_2
				fixed_ship_battery_slot = module_anti_ship_torpedoes_2
			}
		}


	}
	#############################################

	if = {
		limit = { has_dlc = "No Step Back" }

		create_equipment_variant = {
			name = "K1"
			type = mbt_hull_1
			parent_version = 0
			modules = {
				main_armament_slot = tank_small_medium_cannon_2
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_pneumatic_suspension
				armor_type_slot = tank_composite_armor_gen1
				engine_type_slot = tank_diesel_engine_gen3
				reload_type_slot = manual_loading
				special_type_slot_1 = additional_machine_guns
				special_type_slot_2 = smoke_launchers
				special_type_slot_3 = empty
				special_type_slot_4 = tank_battlestation_2
			}
			upgrades = {
				tank_nsb_armor_upgrade = 2
			}
			obsolete = yes
			icon = "GFX_KOR_MBT_3"
		}

		create_equipment_variant = {
			name = "K1A1"
			type = mbt_hull_1
			parent_version = 1
			modules = {
				main_armament_slot = tank_medium_cannon_2
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_pneumatic_suspension
				armor_type_slot = tank_composite_armor_gen1
				engine_type_slot = tank_diesel_engine_gen3
				reload_type_slot = manual_loading
				special_type_slot_1 = additional_machine_guns
				special_type_slot_2 = smoke_launchers
				special_type_slot_3 = empty
				special_type_slot_4 = tank_battlestation_2
			}
			upgrades = {
				tank_nsb_armor_upgrade = 3
			}
			obsolete = yes
			icon = "GFX_KOR_MBT_3"
		}
	}
}

2017.1.1 = {
	capital = 604
	if = {
		limit = { has_dlc = "No Step Back" }

		set_oob = "KOR_2017_nsb"

		else = {
			set_oob = "KOR_2017_nonnsb"
		}
	}

	if = {
		limit = {
			has_dlc = "Man the Guns"
		}
		set_naval_oob = "KOR_2017_naval_mtg"
		else = {
			set_naval_oob = "KOR_2017_naval_legacy"
		}
	}
	set_convoys = 100

	set_variable = { chaebols_opinion = 60 }
	set_variable = { intelligence_community_opinion = 60 }

	add_ideas = {
		widespread_corruption
		pluralist
		fast_growth
		defence_03
		consumption_economy
		edu_04
		health_03
		social_03
		bureau_02
		police_02
		chaebols
		the_military
		intelligence_community
		draft_army
		volunteer_women
		Major_Non_NATO_Ally
		intervention_limited_interventionism
		KOR_national_security_law
	}

	remove_ideas = KOR_national_assembly_deadlocked

	add_timed_idea = {
		idea = KOR_national_assembly_deadlocked
		days = 1199
	}

	remove_ideas = {
		asian_crisis
		asian_tigers_legacy
	}

	set_country_flag = Major_Non_NATO_Ally
	set_country_flag = Major_Importer_US_Arms #Trends-in-international-arms-transfers-2016.pdf

	set_variable = { KOR.SFR = 58 }

	set_country_flag = military_advisors_UAE
	UAE = { add_to_variable = { foreign_advisors = 1 } }

	add_opinion_modifier = { target = JAP modifier = asean_plus_three_relations }
	reverse_add_opinion_modifier = { target = JAP modifier = asean_plus_three_relations }

	set_variable = { var = debt value = 672 }
	set_variable = { var = int_investments value = 400 }
	set_variable = { var = treasury value = 371 }
	set_variable = { var = corporate_tax_rate value = 19 }
	set_variable = { var = population_tax_rate value = 31 }


	# Starting tech
	set_technology = {
		early_high_speed_rail = 1
		high_speed_rail = 1
		modern_high_speed_rail = 1
		freight_locomotive = 1

		infantry_weapons5 = 1 #new
		support_weapons4 = 1
		special_forces3 = 1
		#infantry_weapons6 = 1 #most adv in world

		command_control_equipment4 = 1

		IFV_5 = 1 #K21

		APC_5 = 1 #Hanwha Tarantula

		util_vehicle_4 = 1

		transport_helicopter3 = 1
		transport_helicopter4 = 1 #KAI KUH-1 Surion

		SP_Anti_Air_2 = 1 #K30 Biho or KIFV Vulcan SPAAG


		MR_Fighter2 = 1
		MR_Fighter3 = 1 #developing KAI KF-25 is MR_fighter4

		L_Strike_fighter2 = 1 #KAI T-50 Golden Eagle

		body_armor_2010 = 1

		computing4 = 1
		decryption4 = 1
		encryption4 = 1
		computing5 = 1
		decryption5 = 1
		encryption5 = 1
		neural_networks_revival = 1
		data_mining = 1
		machine_learning = 1
		sociable_machines = 1
		industrial_electrospun_polymeric_nanofibers = 1
		multiwalled_carbon_nanotubes = 1
		modern_electrospinning = 1
		stereolitography = 1
		early_3D_printers = 1
		t3D_wax_printer = 1
		modern_gmo = 1
		gene_therapy = 1
		genetically_modified_crops = 1
		gene_targeting_pesticides = 1
		human_genome_project = 1
		crispr = 1
		cas9_gene_editing = 1

		wifi = 1
		internet3 = 1	#3G
		edge = 1
		umts = 1
		hsupa = 1
		internet4 = 1	#4G
		lte = 1
		construction1 = 1
		construction2 = 1
		excavation1 = 1
		excavation2 = 1
	}
	if = {
		limit = { has_dlc = "No Step Back" }

		set_technology = {
			mbt_tech_2 = 1
			tank_components_tech_3 = 1
			armor_tech_3 = 1
			medium_gun_tech_3 = 1
			diesel_engine_tech_4 = 1
			diesel_engine_tech_5 = 1
		}
	}
	if = {
		limit = { NOT = { has_dlc = "No Step Back" } }

		set_technology = {
			MBT_4 = 1
			MBT_5 = 1
		}
	}
	if = {
		limit = {
			not = { has_dlc = "Man the Guns" }
		}
		set_technology = {
			missile_corvette_2 = 1
			missile_corvette_3 = 1 #Incheon-class Frigate (2011)

			missile_frigate_3 = 1 #Chungmugong Yi Sun-sin class (2003)
			missile_frigate_4 = 1

			missile_destroyer_3 = 1 #Sejong the Great class destroyer (2005)

			LPD_2 = 1 #Dokdo-class amphibious assault ship (2000's)
		}
	}
	if = {
		limit = {
			has_dlc = "Man the Guns"
		}
		set_technology = {
			corvette_hull_1 = 1
			corvette_hull_2 = 1
			corvette_hull_3 = 1

			frigate_hull_1 = 1
			frigate_hull_2 = 1
			frigate_hull_3 = 1
			frigate_hull_4 = 1

			destroyer_hull_1 = 1
			destroyer_hull_2 = 1
			destroyer_hull_3 = 1

			helicopter_operator_hull_1 = 1
			helicopter_operator_hull_2 = 1

			attack_submarine_hull_1 = 1
			attack_submarine_hull_2 = 1
			attack_submarine_hull_3 = 1
			attack_submarine_hull_4 = 1

			aircraft_carrier_engineering = 1
			aircraft_heli_engineering_1 = 1
			aircraft_heli_engineering_2 = 1
			aircraft_heli_engineering_3 = 1

			tech_submarine_engineering = 1
			tech_submarine_engineering_1 = 1
			tech_submarine_engineering_2 = 1

			tech_naval_systems_engineering = 1
			tech_power_systems = 1
			tech_power_systems_1 = 1
			tech_power_systems_2 = 1
			tech_nuclear_power_systems = 1
			tech_nuclear_power_systems_1 = 1
			tech_nuclear_power_systems_2 = 1

			tech_combat_support_systems = 1
			tech_fire_control = 1
			tech_fire_control_1 = 1
			tech_fire_control_2 = 1
			tech_combat_radar = 1
			tech_combat_radar_1 = 1
			tech_combat_radar_2 = 1
			tech_combat_radar_3 = 1
			tech_combat_radar_4 = 1
			tech_combat_sonar = 1
			tech_combat_sonar_1 = 1
			tech_combat_sonar_2 = 1
			tech_combat_sonar_3 = 1
			tech_combat_sonar_4 = 1

			tech_naval_weapon_systems = 1
			tech_light_guns = 1
			tech_light_guns_1 = 1
			tech_light_guns_2 = 1
			tech_127mm_guns = 1
			tech_127mm_guns_1 = 1

			tech_point_defense_system = 1
			tech_point_defense_system_1 = 1
			tech_point_defense_system_2 = 1
			tech_point_defense_system_3 = 1
			tech_point_defense_system_4 = 1
			tech_point_defense_system_5 = 1

			tech_missile_systems = 1
			tech_turret_missiles_surface = 1
			tech_turret_missiles_surface_1 = 1
			tech_turret_missiles_surface_2 = 1
			tech_turret_missiles_surface_3 = 1

			tech_turret_missiles_aa = 1
			tech_turret_missiles_aa_1 = 1
			tech_turret_missiles_aa_2 = 1
			tech_turret_missiles_aa_3 = 1

			tech_vls_surface = 1
			tech_vls_surface_1 = 1
			tech_vls_surface_2 = 1
			tech_vls_surface_3 = 1

			tech_vls_aa = 1
			tech_vls_aa_1 = 1
			tech_vls_aa_2 = 1
			tech_vls_aa_3 = 1

			tech_torpedoes = 1
			tech_torpedoes_1 = 1
			tech_torpedoes_2 = 1
			tech_torpedoes_3 = 1
			tech_torpedoes_4 = 1

			tech_mtg_landing_craft = 1

		}
	}
	#Nat focus

	#Lee Sun-jin was Active until August of 2017
	add_opinion_modifier = { target = NKO modifier = NKO_KOR_Koren_War_Ceasefire }
	#add_opinion_modifier = { target = NKO modifier = hostile_status }
	add_opinion_modifier = { target = USA modifier = NKO_KOR_Korean_War_Aid }

	set_popularities = {
		democratic = 85.3
		communism = 0.6
		fascism = 0.0
		neutrality = 11.5
		nationalist = 2.6
	}
	set_politics = {
		ruling_party = democratic
		last_election = "2012.4.26"
		election_frequency = 60
		elections_allowed = yes
	}

	start_politics_input = yes

	### Party Popularities
	set_variable = { party_pop_array^0 = 0 } #Western_Autocracy
	set_variable = { party_pop_array^1 = 0.24 } #conservatism
	set_variable = { party_pop_array^2 = 0.203 } #liberalism
	set_variable = { party_pop_array^3 = 0.41 } #socialism
	set_variable = { party_pop_array^4 = 0.001 } #Communist-State
	set_variable = { party_pop_array^5 = 0.005 } #anarchist_communism
	set_variable = { party_pop_array^6 = 0 } #Conservative
	set_variable = { party_pop_array^7 = 0 } #Autocracy
	set_variable = { party_pop_array^8 = 0 } #Mod_Vilayat_e_Faqih
	set_variable = { party_pop_array^9 = 0 } #Vilayat_e_Faqih
	set_variable = { party_pop_array^10 = 0 } #Kingdom
	set_variable = { party_pop_array^11 = 0 } #Caliphate
	set_variable = { party_pop_array^12 = 0 } #Neutral_Muslim_Brotherhood
	set_variable = { party_pop_array^13 = 0 } #Neutral_Autocracy
	set_variable = { party_pop_array^14 = 0.047 } #Neutral_conservatism
	set_variable = { party_pop_array^15 = 0 } #oligarchism
	set_variable = { party_pop_array^16 = 0 } #Neutral_Libertarian
	set_variable = { party_pop_array^17 = 0.006 } #Neutral_green
	set_variable = { party_pop_array^18 = 0.062 } #neutral_Social
	set_variable = { party_pop_array^19 = 0 } #Neutral_Communism
	set_variable = { party_pop_array^20 = 0.026 } #Nat_Populism
	set_variable = { party_pop_array^21 = 0 } #Nat_Fascism
	set_variable = { party_pop_array^22 = 0 } #Nat_Autocracy
	set_variable = { party_pop_array^23 = 0 } #Monarchist

	### Ruling Party
	add_to_array = { ruling_party = 1 }

	startup_politics = yes

	create_country_leader = {
		name = "Hwang Kyo-ahn"
		picture = "KOR_Hwang_Kyo-ahn.dds"
		ideology = conservatism
		traits = {
			western_conservatism
			lawyer
		}
	}
	if = {
		limit = {
			NOT  = { has_dlc = "Man the Guns" }
		}
		create_equipment_variant = {
			name = "Gwanggaeto the Great"
			type = missile_frigate_2
			upgrades = {
			}
		}

		create_equipment_variant = {
			name = "Makassar-Class"
			type = LPD_2
			upgrades = {
			}
		}
	}

	create_equipment_variant = {
		name = "KH-179"
		type = artillery_1
		upgrades = {
		}
	}

	#############################################
	#MTG Variants
	##############
	if = {
		limit = { has_dlc = "Man the Guns" }

		#Dokdo Class https://en.wikipedia.org/wiki/Dokdo-class_amphibious_assault_ship
		create_equipment_variant = {
			name = "Dokdo Class"
			type = helicopter_operator_hull_2
			#name_group = KOR_CV_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_engine_slot = module_surface_jet_turbine_power
				fixed_ship_fire_control_system_slot = module_digital_integrated_fire_control
				fixed_ship_radar_slot = module_radar_5
				fixed_ship_auxillary_slot_3 = module_fuel_tank
				fixed_ship_auxillary_slot_2 = module_ram_5
				fixed_ship_auxillary_slot = module_ciws_3
				fixed_ship_battery_slot =  module_light_flight_deck_1
				front_1_custom_slot = module_helipads_2
				mid_1_custom_slot = module_helipads_2
				rear_1_custom_slot = module_fuel_tank
			}

		}

		#Makassar Class #indoensian ship
		create_equipment_variant = {
			name = "Makassar Class"
			type = helicopter_operator_hull_2
			#name_group = KOR_CV_HISTORICAL
			parent_version = 1
			modules = {
				fixed_ship_engine_slot = module_surface_jet_turbine_power
				fixed_ship_fire_control_system_slot = module_digital_integrated_fire_control
				fixed_ship_radar_slot = module_radar_5
				fixed_ship_auxillary_slot_3 = module_fuel_tank
				fixed_ship_auxillary_slot_2 = module_chain_gun
				fixed_ship_auxillary_slot = module_chain_gun
				fixed_ship_battery_slot = module_light_flight_deck_1
				front_1_custom_slot = empty
				mid_1_custom_slot = empty
				rear_1_custom_slot = empty
			}
			obsolete = yes
		}

		#Sejong the Great Class https://en.wikipedia.org/wiki/Sejong_the_Great-class_destroyer
		create_equipment_variant = {
			name = "Sejong the Great Class"
			type = destroyer_hull_3
			#name_group = KOR_DD_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_engine_slot = module_surface_jet_turbine_power2
				fixed_ship_fire_control_system_slot = module_digital_integrated_fire_control
				fixed_ship_radar_slot = module_radar_4
				fixed_ship_auxillary_slot_3 = module_vls_sam_3
				fixed_ship_auxillary_slot_2 = module_aa_missiles_3
				fixed_ship_auxillary_slot = module_asm_3
				fixed_ship_battery_slot = module_127mm_guns_4
				front_1_custom_slot = module_torpedoes_3
				mid_1_custom_slot = module_ciws_4
				mid_2_custom_slot = module_vls_lam_3
				rear_1_custom_slot = module_light_helipad_2

			}
		}

		#Chungmugong Yi Sun-sin Class https://en.wikipedia.org/wiki/Chungmugong_Yi_Sun-sin-class_destroyer
		create_equipment_variant = {
			name = "Chungmugong Yi Sun-sin Class"
			type = destroyer_hull_2
			#name_group = KOR_DD_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_engine_slot = module_surface_jet_turbine_power
				fixed_ship_fire_control_system_slot = module_digital_integrated_fire_control
				fixed_ship_radar_slot = module_radar_4
				fixed_ship_auxillary_slot_3 = module_vls_lam_2
				fixed_ship_auxillary_slot_2 = module_aa_missiles_2
				fixed_ship_auxillary_slot = module_asm_2
				fixed_ship_battery_slot = module_76mm_gun_1
				front_1_custom_slot = module_torpedoes_2
				mid_1_custom_slot = module_ciws_3
				mid_2_custom_slot = module_vls_sam_2
				rear_1_custom_slot = module_light_helipad_1

			}
		}

		#Incheon Class https://en.wikipedia.org/wiki/Incheon-class_frigate
		create_equipment_variant = {
			name = "Incheon Class"
			type = frigate_hull_4
			#name_group = KOR_DD_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_engine_slot = module_light_surface_jet_turbine_power
				fixed_ship_fire_control_system_slot = module_advanced_integrated_missile_radar_control
				fixed_ship_radar_slot = module_radar_5
				fixed_ship_auxillary_slot_2 = module_ciws_3
				fixed_ship_auxillary_slot_1 = module_torpedoes_3
				fixed_ship_auxillary_slot = module_ram_5
				fixed_ship_battery_slot = module_76mm_gun_3
				front_1_custom_slot = module_asm_4
				rear_1_custom_slot = module_light_helipad_2
			}
		}

		create_equipment_variant = {
			name = "Jose Rizal Class"
			type = frigate_hull_4
			#name_group = KOR_DD_HISTORICAL
			parent_version = 1
			modules = {
				fixed_ship_engine_slot = module_light_surface_jet_turbine_power
				fixed_ship_fire_control_system_slot = module_advanced_integrated_missile_radar_control
				fixed_ship_radar_slot = module_radar_5
				fixed_ship_auxillary_slot_2 = module_ciws_3
				fixed_ship_auxillary_slot_1 = module_torpedoes_2
				fixed_ship_auxillary_slot = module_ram_5
				fixed_ship_battery_slot = module_76mm_gun_2
				front_1_custom_slot = module_asm_4
				rear_1_custom_slot = module_light_helipad_2
			}
			obsolete = yes
		}

		#Nagapasa Class
		create_equipment_variant = {
			name = "Nagapasa Class"
			type = attack_submarine_hull_4
			#name_group = KOR_SS_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_engine_slot = module_sub_diesel_electric_power2
				fixed_ship_radar_slot = module_sonar_4
				fixed_ship_auxillary_slot_3 = module_fuel_tank
				fixed_ship_auxillary_slot_2 = module_sub_esm_2
				fixed_ship_auxillary_slot_1 = module_torpedoes_4
				fixed_ship_auxillary_slot = module_torpedoes_4
				fixed_ship_battery_slot = module_anti_ship_torpedoes_4

			}
			obsolete = yes
		}

		#Type 214 Class https://en.wikipedia.org/wiki/Type_214_submarine #israel use this too
		create_equipment_variant = {
			name = "Type 214 Class - Son Won-II"
			type = attack_submarine_hull_3
			#name_group = KOR_SS_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_engine_slot = module_sub_diesel_electric_power
				fixed_ship_radar_slot = module_sonar_5
				fixed_ship_auxillary_slot_3 = module_vls_sub_asm_3
				fixed_ship_auxillary_slot_2 = module_sub_esm_2
				fixed_ship_auxillary_slot_1 = module_torpedoes_4
				fixed_ship_auxillary_slot = module_torpedoes_4
				fixed_ship_battery_slot = module_anti_ship_torpedoes_4
			}
		}

	}
	#############################################

	if = {
		limit = { has_dlc = "No Step Back" }

		create_equipment_variant = {
			name = "K2 Black Panther"
			type = mbt_hull_2
			parent_version = 0
			modules = {
				main_armament_slot = tank_medium_cannon_2
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_pneumatic_suspension
				armor_type_slot = tank_composite_armor_gen2
				engine_type_slot = tank_diesel_engine_gen5
				reload_type_slot = automatic_loading
				special_type_slot_1 = additional_machine_guns
				special_type_slot_2 = smoke_launchers_2
				special_type_slot_3 = smoothbore_atgm_gen2
				special_type_slot_4 = tank_battlestation_2
				special_type_slot_5 = reactive_armor_gen2
			}
			upgrades = {
				tank_nsb_armor_upgrade = 5
			}
			obsolete = yes
			icon = "GFX_KOR_MBT_5"
		}
	}
}